package com.example.blogsystem.mapper;

import com.example.blogsystem.model.entity.User;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {

    //根据邮箱查询用户信息
    User getUserByEmail(String email);
    //新添用户
    void insertUser(String userName, String password, String email);
    //更新用户密码
    void updatePasswordByEmail(String email, String password);
    //更新用户信息
    void updateUserInfo(String avatarPath, String userName, String githubUrl, String email);
}
